//
//  FontConfig.swift
//  iOSProjectExtensionSwift
//
//  Created by Apple on 2020/1/11.
//  Copyright © 2020 lidianchao. All rights reserved.
//
import UIKit
/**
 *  label 的字体大小
 */
let labelSmallFont :CGFloat = 10
let labelBigFont :CGFloat = 17
let labelMiddleFont :CGFloat = 15
let kLargeFont :CGFloat = 16

/**
 *  正常
 *
 *  @param >.0 用于区分9和8
 */
func RGB0X(hexValue:UInt64)->UIColor {
    return UIColor.init(red: CGFloat((hexValue & 0xFF0000) >> 16)/255.0, green: CGFloat((hexValue & 0xFF00) >> 8)/255.0, blue: CGFloat(hexValue & 0xFF)/255.0, alpha: 1.0);
}
func kFontNameLight() -> String {
    if #available(iOS 9.0, *) {
        return "PingFangSC-Light";
    }
    return "Helvetica";
}
func kFontNameBold() -> String {
    if #available(iOS 9.0, *) {
        return "PingFangSC-Semibold";
    }
    return "Helvetica-Bold";
}
func kFontNameNomal() -> String {
    if #available(iOS 9.0, *) {
        return "PingFangSC-Regular";
    }
    return "Helvetica-Light";
}
